<form nz-form [formGroup]="form">
  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzFor="dictKey" nzRequired>字典键</nz-form-label>
    <nz-form-control [nzSpan]="14">
      <nz-input-number style="width: 100%" formControlName="dictKey" [nzMin]="1" [nzMax]="999" [nzStep]="1"></nz-input-number>
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzFor="dictValue" nzRequired>字典值</nz-form-label>
    <nz-form-control [nzSpan]="14">
      <input nz-input formControlName="dictValue" />
    </nz-form-control>
  </nz-form-item>
  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzFor="isRun" nzRequired>是否开启</nz-form-label>
    <nz-form-control [nzSpan]="14">
      <nz-select formControlName="isRun" [nzAllowClear]="true">
        <nz-option *ngFor="let item of yesOrNo" [nzValue]="item.key" [nzLabel]="item.value"></nz-option>
      </nz-select>
    </nz-form-control>
  </nz-form-item>
</form>

<div class="modal-footer">
  <button nz-button nzType="default" (click)="close()"><i nz-icon [nzIconfont]="'pets_close'"></i>关闭</button>
  <button nz-button nzType="primary" (click)="save()"><i nz-icon [nzIconfont]="'pets_select'"></i>确认</button>
</div>
